import type { AddbuildingParams, buildingData } from "../type/building"
import http from "../utils/request"

// 楼栋接口
export const buildingList=()=>http.post<buildingData>('building/list')
// 添加楼栋
export const addBuilding=(data:AddbuildingParams)=>http.post<null>('building/add',data)
// 删除楼栋
export const deleteBuilding=(id:number)=>http.get<null>('building/delete',{id})